package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.vo.DishDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface DishService extends IService<Dish> {
    R saveDish(DishDto dishDto);

    R dishPage(Integer page, Integer pageSize, String name);

    R selectDishById(Long id);

    R updateDish(DishDto dishDto);

    R deleteDish(List<Long> ids);

    R updateDishStatus(Integer status, List<Long> ids);

    R getDishByCategoryId(Long categoryId);
}
